//  Copyright (c) 2008  Yoong-ki Ahn & Youngjin Kim < mexif@googlegroups.com>
//  See the enclosed file COPYING for license information (MIT Licence).
//  If you did not receive this file,
//  see http://www.opensource.org/licenses/mit-license.php.

#pragma once

#include "PropTree.h"
#include <vector>


struct marker_t
{
	int		marker;
	unsigned int	len;
	const unsigned char*	data;
};

typedef std::vector<marker_t>	marker_array;

void fill_exif( CPropTree* tree, LPCTSTR filename );

void fill_fileinfo( CPropTree* tree, CFile& file );

bool fill_jpeginfo( CPropTree* tree, CByteArray& content, marker_array& apps );

// app0 section, jfif.
void fill_jfifinfo( CPropTree* tree, const unsigned char* p, UINT len );

void fill_exifinfo( CPropTree* tree, const unsigned char* pexif, UINT exifSize );
void fill_exifinfo_sec( CPropTree* tree, void* exif, int sectionnum );


